from appium.webdriver.common.mobileby import MobileBy

from lagou.appium_exercise4.pages.base_page import BasePage
from lagou.appium_exercise4.pages.member_detail_page import MemberDetailPage


class MemberInfoPage(BasePage):
    more_ele = (MobileBy.XPATH,"(//*[@text='个人信息']/../../../../..//*[@class='android.widget.LinearLayout'])[last()]")
    def click_more_info(self):
        # 点击右上角三个点更多按钮
        self.find_and_click(*self.more_ele)
        return MemberDetailPage(self.driver)